﻿using MongoDB.Bson.Serialization.Attributes;
using System;
using System.Collections.Generic;
using System.Text;

namespace IH.Storage.Entity
{
    public abstract class TEntity
    {
        [BsonId]
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string Id { get; set; }
        [BsonElement("create_time")]
        public long CreateTime { get; set; } = new DateTimeOffset(DateTime.Now).ToUnixTimeMilliseconds();
    }
}
